package com.probiz.estore.common.model.system.base;
/*
 *  Created on Wed Aug 18 17:11:11 CST 2010
 *
 */
import java.io.Serializable;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.EqualsBuilder;

/**
 * AppMenuRole Primary Key Class  
 * 
 * This is the Primary Key class for app_menu_role
 * 
 */
 
public class AppMenuRolePK  implements Serializable {

    protected Integer roleId;
    protected Integer menuId;

	/**
	 * Default Constructor for Primary Key Class
	 */
	public AppMenuRolePK() {
		super();
	}
	/**
	 * Keys Constructor for Primary Key Class
	 */
	public AppMenuRolePK(
			 Integer in_roleId
			,Integer in_menuId
	) {
		super();
			this.roleId =  in_roleId;
			this.menuId =  in_menuId;
		}
  /**
	*
	* @return Integer
	*/
	public Integer getRoleId() {
		return this.roleId;
	}
	
  /**
	* Set the roleId
	*/	
	public void setRoleId(Integer aValue) {
		this.roleId = aValue;
	}
  /**
	*
	* @return Integer
	*/
	public Integer getMenuId() {
		return this.menuId;
	}
	
  /**
	* Set the menuId
	*/	
	public void setMenuId(Integer aValue) {
		this.menuId = aValue;
	}
   /**
	 * @see java.lang.Object#equals(Object)
	 */
	public boolean equals(Object object) {
		if (!(object instanceof AppMenuRolePK)) {
			return false;
		}
		AppMenuRolePK rhs = (AppMenuRolePK) object;
		return new EqualsBuilder()
				.append(this.roleId, rhs.roleId)
				.append(this.menuId, rhs.menuId)
				.isEquals();
	}
	/**
	 * @see java.lang.Object#hashCode()
	 */
	public int hashCode() {
		return new HashCodeBuilder(-82280557, -700257973)
				.append(this.roleId) 
				.append(this.menuId) 
				.toHashCode();
	}
	/**
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return new ToStringBuilder(this)
				.append("roleId", this.roleId) 
				.append("menuId", this.menuId) 
				.toString();
	}
}